package com.csun.cmny.provider.model.dto;

import com.csun.cmny.provider.validator.WelfareActivityAddValidator;
import com.csun.cmny.provider.validator.WelfareActivityEditValidator;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class WelfareActivityDto implements Serializable {

    private static final long serialVersionUID = 5421158536970922278L;

    /*
    * id
    * */
    @NotNull(message = "{queryMachine.activityId.null}",
            groups = {WelfareActivityEditValidator.class})
    private Long id;

    /**
     * 活动名称
     */
    @NotNull(message = "{queryMachine.activityName.null}",
            groups = {WelfareActivityAddValidator.class})
    @NotEmpty(message = "{queryMachine.activityName.null}",
            groups = {WelfareActivityAddValidator.class})
    private String activityName;

    /**
     * 活动内容
     */
    private String activity;

    /**
     * 活动状态: 1-已结束 2-进行中
     */
    private Integer activityType;

    /*
     * 活动开始时间
     * */
    private String startTime;

    /*
     * 活动结束时间
     * */
    private String endTime;

    /**
     * 首图片id
     */
    private String firstPic;

    /**
     * 描述
     */
    private String remark;
}
